package com.gin.supermarket_inventory_system.inventory.dto.form;

import com.gin.database.validation.EntityId;
import com.gin.supermarket_inventory_system.commodity.service.CommodityService;
import com.gin.supermarket_inventory_system.inventory.entity.PurveyorPo;
import com.gin.supermarket_inventory_system.inventory.service.PurveyorService;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * 修改供应商
 * @since : 2023/10/10 11:53
 * @author : ginstone
 * @version : v1.0.0
 **/
@Getter
@Setter
@Schema(description = "表单对象:修改供应商")
public class PurveyorUpdateForm extends PurveyorAddForm{
    @EntityId(service = PurveyorService.class)
    @NotNull
    long id;
}